<aside class="lyear-layout-sidebar">

    <!-- logo -->
    <div id="logo" class="sidebar-header" style="height: 68px">
        <a href="index.html"><img src="/images/logo.png" title="LightYear" alt="LightYear" /></a>
    </div>
    <div class="lyear-layout-sidebar-scroll">

        <nav class="sidebar-main">
            <ul class="nav nav-drawer">
                <% if(locals.path=='/admin'){ %>
                  <li class="nav-item active"> <a href="/admin"><i class="mdi mdi-home"></i> 后台首页</a> </li> 
                <% }else{ %>
                   <li class="nav-item"> <a href="/admin"><i class="mdi mdi-home"></i> 后台首页</a> </li>
                <%}%>
            
                <% if(locals.path=='/admin/user'){ %>
                   <li class="nav-item active">
                    <a href="/admin/user"><i class="mdi mdi-palette"></i> 用户管理</a>             
                   </li>
                <% }else{ %>
                    <li class="nav-item">
                        <a href="/admin/user"><i class="mdi mdi-palette"></i> 用户管理</a>             
                    </li>
                <%}%>
            
                <% if(locals.path=='/admin/menu'){ %>
                     <li class="nav-item active">
                         <a href="/admin/menu"><i class="mdi mdi-format-align-justify"></i> 菜单管理</a>       
                    </li>
                <% }else{ %>
                    <li class="nav-item ">
                      <a href="/admin/menu"><i class="mdi mdi-format-align-justify"></i> 菜单管理</a> 
                     </li>
                 <%}%>
            
               <% if(locals.path=='/admin/classify'){ %>
                     <li class="nav-item active">
                         <a href="/admin/classify"><i class="mdi mdi-language-javascript"></i> 文章分类</a>   
                     </li>
               <% }else{ %>
                     <li class="nav-item ">
                         <a href="/admin/classify"><i class="mdi mdi-language-javascript"></i> 文章分类</a>                   
                     </li>
               <%}%>
            
               <% if(locals.path=='/admin/artical'){ %>
                    <li class="nav-item active">
                         <a href="/admin/artical"><i class="mdi mdi-file-outline"></i> 文章管理</a>            
                   </li>
              <% }else{ %>
                   <li class="nav-item ">
                        <a href="/admin/artical"><i class="mdi mdi-file-outline"></i> 文章管理</a>            
                   </li>
              <%}%>
            
             <% if(locals.path=='/admin/banner'){ %>
                   <li class="nav-item active">
                        <a href="/admin/banner"><i class="mdi mdi-menu"></i> 轮播图管理</a>              
                   </li>
               <% }else{ %>
                    <li class="nav-item ">
                        <a href="/admin/banner"><i class="mdi mdi-menu"></i> 轮播图管理</a>              
                    </li>
               <%}%>                   
             </ul>
        </nav>

        <div class="sidebar-footer">
            <p class="copyright">Copyright &copy; 2019.初心教育 All rights reserved.</p>
        </div>
    </div>

</aside>